export const formatTimer = (value) => {
  const date = new Date(value);
  const y = date.getFullYear();
  const MM = (date.getMonth() + 1).toString().padStart(2, "0");
  const d = date.getDate().toString().padStart(2, "0");
  const hh = date.getHours().toString().padStart(2, "0");
  const mm = date.getMinutes().toString().padStart(2, "0");
  return `${y}-${MM}-${d} ${hh}:${mm}`;
};

export const formatDate = (value) => {
  const date = new Date(value);
  const y = date.getFullYear();
  const MM = (date.getMonth() + 1).toString().padStart(2, "0");
  const d = date.getDate().toString().padStart(2, "0");
  return `${y}-${MM}-${d}`;
};


